package com.lichuang.dedao.user.controller;


import com.lichuang.dedao.user.entity.UserCoupon;
import com.lichuang.dedao.user.service.IUserCouponService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户卡券 前端控制器
 * </p>
 *
 * @author hanghang
 * @since 2019-07-15
 */
@RestController
@RequestMapping("//user-coupon")
public class UserCouponController {

    @Autowired
    private IUserCouponService userCouponService;

    @RequestMapping("/selectUserCoupons")
    public List<UserCoupon> selectUserCoupons(Integer userId){
        return userCouponService.selectUserCoupons(userId);
    }

}
